﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DACK_MHTTUD_0912008_0912493
{
    class clsChecker
    {
        public static string CheckInPutVerifyAvailable(TextBox tbPathVerifyMessage, TextBox tbPathVerifyKeypairs, TextBox tbPathVerifyDigitalSignature)
        {
            if (string.IsNullOrEmpty(tbPathVerifyMessage.Text))
                return "You must choose the path of message file!.";
            else if (string.IsNullOrEmpty(tbPathVerifyKeypairs.Text))
                return "You must choose the path of keypairs file!.";
            else if (string.IsNullOrEmpty(tbPathVerifyDigitalSignature.Text))
                return "You must choose the path of digital signature file!.";
            return "";
        }

        public static string CheckInPutSignAvailable(TextBox tbPathSignMessage, TextBox tbPathSignKeypairs)
        {
            if (string.IsNullOrEmpty(tbPathSignMessage.Text))
                return "You must choose the path of message file!.";
            else if (string.IsNullOrEmpty(tbPathSignKeypairs.Text))
                return "You must choose the path of keypairs file!.";
            return "";
        }
    }
}
